<template>
  <div class="c-w100 c-bg-white">
    <div class="c-flex-column c-justify-center c-aligni-center c-pb120">
      <i class="iconfont c-fs100 c-mt120 theme-fc">&#xe6eb;</i>
      <p class="c-fs28 c-fc-xblack c-mt20">退出成功</p>
      <div class="c-mt390 c-ww280 c-hh64 c-lh64 c-textAlign-c c-fs28 c-fc-white c-br30 theme-bg-gradient" @click="goIndex">返回首页</div>
      <div class="c-mt40 c-ww280 c-hh64 c-lh64 c-textAlign-c c-fs28 c-fc-xblack c-br30 c-bd1-mgray" @click="goCircleList">返回圈子列表</div>
    </div>
  </div>
</template>

<script>
import { utilJs } from "@/utils/common.js";
export default {
  name: "exitCircleSuccess",
  data() {
    return {
      theme: localStorage.getItem("colorName") || 'mb5_default',
    }
  },
  activated() {
    setDocumentTitle("退出圈子");
  },
  created() {
    utilJs.appShare(this);
  },
  methods: {
    // 跳转到圈子列表
    goCircleList() {
      this.$routerGo(this, "replace", {
        path: '/homePage/circle/circleList'
      })
    },
    // 跳转首页
    goIndex() {
      this.$routerGo(this, "push", {
        path: '/'
      })
    },
    //分享
    wechatShare: function () {
      let title = '首页';
      let shareUrl = `${window.location.href.split("#")[0]}#?refereeId=${localStorage.getItem("userId")}`;
      let shareDesc = window.localStorage.getItem("shareDesc") || '点击查看详情';
      utilJs.wechatConfig(shareUrl, title, "", shareDesc, function () { });
    },
    //手机端分享
    appShare: function () {
      let title = '首页';
      let shareUrl = `${window.location.href.split("#")[0]}#?refereeId=${localStorage.getItem("userId")}`;
      let shareDesc = window.localStorage.getItem("shareDesc") || '点击查看详情';
      utilJs.appShareTrue(title, "", shareUrl, shareDesc);
    }
  }
}
</script>

<style lang="less" scoped>
.c-fs120 {
  font-size: 4rem;
}
.c-mt390 {
  margin-top: 9.75rem;
}
</style>